﻿package net 
{
	import debugs.Debug;
	import flash.display.DisplayObject;
	import flash.display.LoaderInfo;
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author keys_star@163.com
	 */
	public class netvars
	{
		private static var FlashVars:Object;
		public static function load(mc:DisplayObject):void {
			FlashVars = mc.root.loaderInfo.parameters;
			Debug.sendObj(netvars, FlashVars);
		}
		public static function getVar(n:String):* {
			var s:* = FlashVars[n];
			return s;
		}
		public static function setVar(n:String, s:*):void {
			FlashVars[n] = s;
		}
	}
}